Ext.define('Jee.controller.security.user.UserController', {
    extend: 'Ext.app.Controller',
    stores: ['security.user.UserStore'],
    models: ['security.user.UserModel'],
    views: ['security.user.UserMainView','security.user.UserGridView']
   /****
    init: function() {
        this.control({
            'viewport > userlist dataview': {
                itemdblclick: this.editUser
            },
            'useredit button[action=save]': {
                click: this.updateUser
            }
        });
    },

    editUser: function(grid, record) {
        var edit = Ext.create('AM.view.user.Edit').show();
        edit.down('form').loadRecord(record);
    },
    updateUser: function(button) {
        var win    = button.up('window'),
            form   = win.down('form'),
            record = form.getRecord(),
            values = form.getValues();

        record.set(values);
        win.close();
        this.getUsersStore().sync();
    }**/
});
